mobileStorePurchaseError
Type
function
Summary
Get more detailed information about errors in the purchase request.
Syntax
mobileStorePurchaseError (purchaseID)
Description
Use the mobileStorePurchaseError function to get more detailed information about errors in the purchase request.
The function mobileStorePurchaseError is used to get more detailed information about errors in the purchase request.
This function should be called in purchaseStateUpdate message when pState = "error".
Examples
on purchaseStateUpdate pPurchaseID, pProductID, pState
switch pState
case "paymentReceived"
...
case "error"
answer "Error occurred during purchase handling:" \
&& mobilePurchaseError(pPurchaseID)
mobileStoreDisablePurchaseUpdates
case "invalidSKU"
...
case "alreadyEntitled"
...
case "restored"
...
case "cancelled"
...
end switch
end purchaseStateUpdate
Related
command: mobileStoreRestorePurchases, mobileStoreDisablePurchaseUpdates, mobileStoreEnablePurchaseUpdates, mobileStoreRequestProductDetails, mobileStoreMakePurchase, mobileStoreSetProductType, mobileStoreConsumePurchase, mobileStoreConfirmPurchase, mobileStoreVerifyPurchase
function: mobileStoreCanMakePurchase, mobileStorePurchasedProducts, mobileStoreProductProperty
message: purchaseStateUpdate, productRequestError, productDetailsReceived
Compatibility and Support
Introduced
LiveCode 6.7
OS
ios
android
Platforms
mobile